package cn.sdormitory.exam.dao;


import cn.sdormitory.basedata.entity.BStudent;
import cn.sdormitory.exam.vo.ExamInfoVO;
import cn.sdormitory.exam.vo.ExamResultInfoAppVo;
import cn.sdormitory.exam.vo.ExamResultInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ExamResultInfoDao extends BaseMapper<ExamResultInfoVO> {

    List<ExamResultInfoVO> findExamResultPageList(@Param("vo") ExamResultInfoVO vo);

    int findExamResultPageListCount(@Param("vo") ExamResultInfoVO vo);

    List<ExamResultInfoAppVo> findResultByStudentNo(String studentNo);
    
    List<BStudent> findMakeUpExamResult(@Param("vo") ExamInfoVO vo);
    
    List<BStudent> getExamStudentsByExamId(@Param("examId") String examId);
    
    int findExamRecord(@Param("examId") Long examId, @Param("classId") String classId);
}
